package pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private long userId;
	private User user;
	private String userName;
	private long userNum;
	private String gender;
	private Date birthday;
	private String department;
	private String major;
	private String masterType;
	private Date entranceDate;
	private Integer yearSystem;
	private Integer class_;
	private String preAdress;
	private long postcode;
	private long qqNum;
	private String EMail;
	private long phoneNum;
	private Set users = new HashSet(0);
	private Set weeksummaries = new HashSet(0);
	private Set onlineUsers = new HashSet(0);
	private Set roles = new HashSet(0);
	private Set messages = new HashSet(0);
	private Set achievements = new HashSet(0);
	private Set events = new HashSet(0);
	private Set courses = new HashSet(0);
	private Set notices = new HashSet(0);
	private Set weekplans = new HashSet(0);
	private Set messages_1 = new HashSet(0);
	private Set userProjects = new HashSet(0);
	private Set files = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(User user, String userName, long userNum, String gender,
			Date birthday, String department, String major, String masterType,
			Date entranceDate, Integer yearSystem, Integer class_,
			String preAdress, long postcode, long qqNum, String EMail,
			long phoneNum, Set users, Set weeksummaries, Set onlineUsers,
			Set roles, Set messages, Set achievements, Set events, Set courses,
			Set notices, Set weekplans, Set messages_1, Set userProjects,
			Set files) {
		this.user = user;
		this.userName = userName;
		this.userNum = userNum;
		this.gender = gender;
		this.birthday = birthday;
		this.department = department;
		this.major = major;
		this.masterType = masterType;
		this.entranceDate = entranceDate;
		this.yearSystem = yearSystem;
		this.class_ = class_;
		this.preAdress = preAdress;
		this.postcode = postcode;
		this.qqNum = qqNum;
		this.EMail = EMail;
		this.phoneNum = phoneNum;
		this.users = users;
		this.weeksummaries = weeksummaries;
		this.onlineUsers = onlineUsers;
		this.roles = roles;
		this.messages = messages;
		this.achievements = achievements;
		this.events = events;
		this.courses = courses;
		this.notices = notices;
		this.weekplans = weekplans;
		this.messages_1 = messages_1;
		this.userProjects = userProjects;
		this.files = files;
	}

	// Property accessors

	public long getUserId() {
		return this.userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public long getUserNum() {
		return this.userNum;
	}

	public void setUserNum(long userNum) {
		this.userNum = userNum;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getMajor() {
		return this.major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getMasterType() {
		return this.masterType;
	}

	public void setMasterType(String masterType) {
		this.masterType = masterType;
	}

	public Date getEntranceDate() {
		return this.entranceDate;
	}

	public void setEntranceDate(Date entranceDate) {
		this.entranceDate = entranceDate;
	}

	public Integer getYearSystem() {
		return this.yearSystem;
	}

	public void setYearSystem(Integer yearSystem) {
		this.yearSystem = yearSystem;
	}

	public Integer getClass_() {
		return this.class_;
	}

	public void setClass_(Integer class_) {
		this.class_ = class_;
	}

	public String getPreAdress() {
		return this.preAdress;
	}

	public void setPreAdress(String preAdress) {
		this.preAdress = preAdress;
	}

	public long getPostcode() {
		return this.postcode;
	}

	public void setPostcode(long postcode) {
		this.postcode = postcode;
	}

	public long getQqNum() {
		return this.qqNum;
	}

	public void setQqNum(long qqNum) {
		this.qqNum = qqNum;
	}

	public String getEMail() {
		return this.EMail;
	}

	public void setEMail(String EMail) {
		this.EMail = EMail;
	}

	public long getPhoneNum() {
		return this.phoneNum;
	}

	public void setPhoneNum(long phoneNum) {
		this.phoneNum = phoneNum;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public Set getWeeksummaries() {
		return this.weeksummaries;
	}

	public void setWeeksummaries(Set weeksummaries) {
		this.weeksummaries = weeksummaries;
	}

	public Set getOnlineUsers() {
		return this.onlineUsers;
	}

	public void setOnlineUsers(Set onlineUsers) {
		this.onlineUsers = onlineUsers;
	}

	public Set getRoles() {
		return this.roles;
	}

	public void setRoles(Set roles) {
		this.roles = roles;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public Set getAchievements() {
		return this.achievements;
	}

	public void setAchievements(Set achievements) {
		this.achievements = achievements;
	}

	public Set getEvents() {
		return this.events;
	}

	public void setEvents(Set events) {
		this.events = events;
	}

	public Set getCourses() {
		return this.courses;
	}

	public void setCourses(Set courses) {
		this.courses = courses;
	}

	public Set getNotices() {
		return this.notices;
	}

	public void setNotices(Set notices) {
		this.notices = notices;
	}

	public Set getWeekplans() {
		return this.weekplans;
	}

	public void setWeekplans(Set weekplans) {
		this.weekplans = weekplans;
	}

	public Set getMessages_1() {
		return this.messages_1;
	}

	public void setMessages_1(Set messages_1) {
		this.messages_1 = messages_1;
	}

	public Set getUserProjects() {
		return this.userProjects;
	}

	public void setUserProjects(Set userProjects) {
		this.userProjects = userProjects;
	}

	public Set getFiles() {
		return this.files;
	}

	public void setFiles(Set files) {
		this.files = files;
	}

}